import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 200,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增',
    editBtn: true,
    delBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '开始时间',
        prop: 'p1',
        overHidden: true,
        search: true,
        type: 'date'

      },
      {
        label: '结束时间',
        prop: 'p2',
        dicData: self.shipSTypeArr,
        filterable: true,
        search: true,
        type: 'date'
      },
      {
        label: '船舶停靠位置',
        prop: 'p3',
        overHidden: true,
        search: true,
      },
      {
        label: '作业区域',
        prop: 'p4',
        overHidden: true,
      },
      {
        label: '关键路径点',
        prop: 'p5',
        overHidden: true,

      },
      {
        label: '负责人',
        prop: 'p6',
        overHidden: true
      },
      {
        label: '负责人联系方式',
        prop: 'p7',
      },
      {
        label: '操作人员',
        prop: 'p8',
      },
      {
        label: '操作人员联系方式',
        prop: 'p9',
      },
      {
        label: '安全监督员',
        prop: 'p10',
      },
      {
        label: '所需资源',
        prop: 'p11',
      },
      {
        label: '安全措施',
        prop: 'p12',
      },
      {
        label: '协调机制',
        prop: 'p13',
      },
    ]
  }
}

export const options1 = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menu: false,
    addBtn: true,
    addBtnText: '新增',
    searchShow: false,
    editBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '审批人',
        prop: 'p1',
        search: true,
        overHidden: true,
        search: true,
      },
      {
        label: '审批时间',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '审批状态',
        prop: 'p3',
        overHidden: true,
      },
      {
        label: '修改意见',
        prop: 'p4',
        overHidden: true,
      },
      {
        label: '审批人职位',
        prop: 'p5',
        overHidden: true,
      },
      {
        label: '审批人所属单位',
        prop: 'p6',
        overHidden: true,
      },
    ]
  }
}